package com.cn.wanxi.thread;

public class MyRunnableTest {
    public static void main(String[] args) {

        MyRunnable myRunnable = new MyRunnable();
//        for (int i = 0; i < 100; i++) {

//        myRunnable.run();//直接调用run方法，和普通方法一直，就不属于线程
        Thread thread = new Thread(myRunnable, 1 + "");

        thread.start();
        Thread thread2 = new Thread(myRunnable, 2 + "");
        thread2.setPriority(10);
        thread2.start();
        Thread thread3 = new Thread(myRunnable, 3 + "");
        thread3.setPriority(9);
        thread3.start();
//        }
    }
}
